<?php
/**
 *
 * PHP 5
 *
 * CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 *
 * Licensed under The MIT License
 * For full copyright and license information, please see the LICENSE.txt
 * Redistributions of files must retain the above copyright notice.
 *
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
 * @link          http://cakephp.org CakePHP(tm) Project
 * @package       app.View.Layouts
 * @since         CakePHP(tm) v 0.10.0.1076
 * @license       MIT License (http://www.opensource.org/licenses/mit-license.php)
 */

$cakeDescription = __d('cake_dev', 'UnitTest Management');
?>
<!DOCTYPE html>
<html>
<head>
	
	<?php echo $this->Html->charset(); ?>
	<title>
		<?php echo $title_for_layout; ?>
	</title>
	
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	
	<?php
		echo $this->Html->meta('icon');

		// Meta tag
		echo $this->fetch('meta');
		
		// CSS
		echo $this->Html->css('testcase');
		echo $this->Html->css('bootstrap');
		echo $this->Html->css('chrono_admin');
		echo $this->Html->css('menu_accordion');		
		echo $this->Html->css('select2');
		echo $this->Html->css('jquery-ui.css');
		echo $this->Html->css('validate');
		echo $this->fetch('css');
		
		// Script
		echo $this->Html->script('jquery');
		echo $this->Html->script('bootstrap.min');
		echo $this->Html->script('jquery.dataTables');
		echo $this->Html->script('FixedColumns');
		echo $this->Html->script('select2');
		echo $this->Html->script('jquery-ui-1.10.3.custom');
		echo $this->Html->script('DateTimePicker');
		echo $this->Html->script('jquery.bpopup.min');
		echo $this->Html->script('jquery.validate.min');
		echo $this->fetch('script');
	?>
</head>
<body>
	<div id="container">
	<div class="navbar navbar-inverse" >
		<h1 align ="center" >
		<?php 
			echo $this->Html->link(
				$cakeDescription, 
				array('controller' => 'home', 'action' => 'index'),
				array('style' => 'text-decoration: none; color: green')
				); 
		?>
		
		</h1>
	</div>
		
		<?php
			$userName =  'Guest';
		?>
		
		<div class="navbar "  style = "border: 2px solid #808080">
			<div class="navbar-inner nav-collapse">
				<ul class="nav" >
					<li class="active">
						<a class="brand">Hi, <span style="color: #3E7EBD;"><?php echo $userName;?></span></a>
					</li>
				</ul>
			</div>
		</div>
			
		<div id="content" class="row-fluid" >

			<div class="span3 sidebar">
				<h2>Menu</h2>
				
				<?php echo $this->element('menu/menu_left')?>
			</div>
			
			<div class="span9 main" >
				<h3 align = "center" style = "color: green; font-size: 22px"><?php echo isset($title_for_content) ? $title_for_content : $cakeDescription;?></h3>
				<?php echo $this->Session->flash(); ?>
				<?php echo $this->fetch('content'); ?>
			</div>
			
		</div>
	</div>
	<?php //echo $this->element('sql_dump'); ?>
</body>
</html>
